package com.share.hibernate.baseDaoSupport;

import java.util.List;

/**
 * 前台extjs 使用分页查询时  工具类  
 * toJsonString 将对象返回给json 字符串  是用 gson 工具  
 * @author xianwei
 *
 */
public class PageUtil {
	//private static final Gson gson = new Gson();
	private Integer total;
	private List<?> entityList;
	/**
	 * @return the total
	 */
	public Integer getTotal() {
		return total;
	}
	/**
	 * @param total the total to set
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}
	/**
	 * @return the entityList
	 */
	public List<?> getEntityList() {
		return entityList;
	}
	/**
	 * @param entityList the entityList to set
	 */
	public void setEntityList(List<?> entityList) {
		this.entityList = entityList;
	}
/*	public String toJsonString(){
		
		return gson.toJson(this);
	}*/
}
